import request from '@/utils/request'
export default{
  //1.添加课时小结
 addVideo(video){
   return request({
        url:'/eduservice/video/addVideo',
        method:'post',
        //将对象转换成json传输
        data:video
      })
  },
  //2.删除课时操作
  deleteVideo(videoId){
    return request({
         url:'/eduservice/video/deleteVideo/'+videoId,
         method:'delete',
         //将对象转换成json传输
       })
  },
  //3.修改课时操作
  updateVideo(video){
    return request({
         url:'/eduservice/video/updateVideo',
         method:'put',
         //将对象转换成json传输
         data:video
       })
  },
  //4.根据课时Id获取课时
  selectVideoById(videoId){
    return request({
         url:'/eduservice/video/getVideoById/'+videoId,
         method:'get',
         //将对象转换成json传输
       })
  },
  //删除视频
  deleteAliyunVideo(videoSourceId){
    return request({
         url:'/eduvod/video/deleteAliyunVideo/'+videoSourceId,
         method:'delete',
       })
  }
}
